-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a history endpoint #45
Conversation
163aa69
to
4d331b4
Compare
- A very basic history endpoint as described in the issue rodolfobandeira#39 - Doesn't yet support all the filters that are described in the documentation provided here https://documenter.getpostman.com/view/2025350/RWaEzAiG#9f1dfdc0-fbe8-4ae5-9209-7f3d649a627c - Allows retrieving all the historical events or a specific historical event by passing an id - This closes rodolfobandeira#39 when merged in. Notes: - Also decided to alphabetize the order in which we `require` the files in the `spacex.rb` file
4d331b4
to
401c11f
Compare
Pull Request Test Coverage Report for Build 97
💛 - Coveralls |
Hey @invacuo, Sorry I couldn't review this yet. I'm gonna take a look tonight! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm OK with it. Feel free to merge it.
Also, I'm gonna think on some ideas to implement all these filters and will let you know.
Thanks @invacuo
I have a WIP branch for implementing filters. It basically uses an optional params hash that then gets passed on to the SPACEX api endpoint. Faraday does the URL encoding for us. I will push it up later today for you to review. There are some unanswered questions there like what do we do for capsules endpoint that accepts |
I don't believe deprecating the version 1.0 right now would be a good idea since we just released. Maybe we can create a workaround like adding an extra optional parameter like a hash. For example:
Another idea would be just adding different methods and keep Cheers! |
Not suggesting deprecating version 1.0 right now. It is just a warning of the upcoming changes in v2 that we will be switching to using keyword arguments instead of positional. Version 1.0 will work as it is. And it will accept the optional I also thought about exposing another method which is also not a bad idea. I do like the idea of having just one exposed method better though. What are your thoughts on adding a deprecation warning on |
Notes:
require
the files in thespacex.rb
file